<%-- 
    Document   : changeprofile
    Created on : Jun 19, 2012, 4:03:49 PM
    Author     : VANANH
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/> 
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/> 
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jq.date.js"></script>  
        <link rel="stylesheet" type="text/css" href="../css/ui.datepicker.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>

    </head>
    <script type="text/javascript" language="javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
              
          
 

        });
    </script>
    <style>
        .form_item_content{
            float: left !important;
            margin-left: 10px !important;
            margin-top: 8px !important;
            width: 100% !important;
        }
    </style>


    <body style=" float:left; width:auto; height:auto; margin:0px;">
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <f:view>
            <a4j:form>
                <div class="popup" style="height:268px; width:350px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="#{locale.update_information}"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="display: block;">
                                <div class="fields_input">
                                    <label>Ngoại tệ:</label>

                                    <h:selectOneMenu value="#{Q100Bean.money}" style="width:165px;">
                                        <f:selectItem itemLabel="VND" itemValue="VND" />
                                        <f:selectItem itemLabel="USD" itemValue="USD" />                                       
                                    </h:selectOneMenu>
                                </div>
                                <div class="fields_input">
                                    <label>Ngày định dạng:</label>

                                    <h:selectOneMenu value="#{Q100Bean.fomatdate}" style="width:165px;">
                                        <f:selectItem itemLabel="dd/MM/yyyy" itemValue="dd/MM/yyyy" />
                                        <f:selectItem itemLabel="mm/DD/yyyy" itemValue="mm/DD/yyyy" />
                                        <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
                                        <f:selectItem itemLabel="mm-DD-yyyy" itemValue="mm-DD-yyyy" />
                                        <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
                                        <f:selectItem itemLabel="mm.DD.yyyy" itemValue="mm.DD.yyyy" />
                                    </h:selectOneMenu>
                                </div>
                                <div class="fields_input">
                                    <label>Múi giờ:</label>
                                    <h:selectOneMenu value="#{Q100Bean.timezone}" style="width:165px">                                                                               
                                        <f:selectItem itemValue="US/Central"  itemLabel=" Site Default (US/Central)"/>
                                        <f:selectItem itemValue="GMT-1100" itemLabel="(GMT-1100) Midway Island, Samoa"/>
                                        <f:selectItem itemValue="GMT-1000" itemLabel="(GMT-1000) Hawaii"/>
                                        <f:selectItem itemValue="GMT-0900" itemLabel="(GMT-0900) Alaska"/>
                                        <f:selectItem itemValue="GMT-0800" itemLabel="(GMT-0800) Pacific Time (US &amp; Canada), Tijuana"/>
                                        <f:selectItem itemValue="GMT-0700" itemLabel="(GMT-0700) Mountain Time (US &amp; Canada)"/>

                                        <f:selectItem itemValue="GMT-0700"  itemLabel="(GMT-0700) Chihuahua, La Pax, Mazatlan"/>
                                        <f:selectItem itemValue="GMT-0700" itemLabel="(GMT-0700) Arizona"/>
                                        <f:selectItem itemValue="GMT-0600"
                                                      itemLabel="(GMT-0600) Central America"/>
                                        <f:selectItem itemValue="GMT-0600"
                                                      itemLabel="(GMT-0600) Central Time (US &amp; Canada)"/>
                                        <f:selectItem itemValue="GMT-0600"
                                                      itemLabel="(GMT-0600) Guadalajara, Mexico City, Monterrey"/>

                                        <f:selectItem itemValue="GMT-0600"
                                                      itemLabel="(GMT-0600) Saskatchewan"/>
                                        <f:selectItem itemValue="GMT-0500"
                                                      itemLabel="(GMT-0500) Bogota, Lima, Quito"/>

                                        <f:selectItem itemValue="GMT-0500"
                                                      itemLabel="(GMT-0500) Indiana (East)"/>

                                        <f:selectItem itemValue="GMT-0430"
                                                      itemLabel="(GMT-0430) Caracas, La Paz"/>

                                        <f:selectItem itemValue="GMT-0400"
                                                      itemLabel="(GMT-0400) Atlantic Time (Canada)"/>

                                        <f:selectItem itemValue="GMT-0400"
                                                      itemLabel="(GMT-0400) Santiago"/>

                                        <f:selectItem itemValue="GMT-0330"
                                                      itemLabel="(GMT-0330) Newfoundland"/>

                                        <f:selectItem itemValue="GMT-0300"
                                                      itemLabel="(GMT-0300) Buenos Aires, Georgetown"/>

                                        <f:selectItem itemValue="GMT-0300"
                                                      itemLabel="(GMT-0300) Greenland"/>

                                        <f:selectItem itemValue="GMT-0300"
                                                      itemLabel="(GMT-0300) Brasilia"/>

                                        <f:selectItem itemValue="GMT-0200"
                                                      itemLabel="(GMT-0200) Mid-Atlantic"/>

                                        <f:selectItem itemValue="GMT-0100"
                                                      itemLabel="(GMT-0100) Azores"/>

                                        <f:selectItem itemValue="GMT-0100"
                                                      itemLabel="(GMT-0100) Cape Verde Island"/>

                                        <f:selectItem itemValue="GMT+0000"
                                                      itemLabel="(GMT+0000) Casablanca, Monrovia"/>

                                        <f:selectItem itemValue="GMT+0000"
                                                      itemLabel="(GMT+0000) Greenwich Mean Time, Dublin, Edinburgh, Lisbon, London"/>

                                        <f:selectItem itemValue="GMT+0000"
                                                      itemLabel="(GMT+0000) Coordinated Universal Time (UTC)"/>

                                        <f:selectItem itemValue="GMT+0100"
                                                      itemLabel="(GMT+0100) West Central Africa"/>

                                        <f:selectItem itemValue="GMT+0100"
                                                      itemLabel="(GMT+0100) Belgrade, Bratislava, Budapest, Ljubljana, Prague"/>

                                        <f:selectItem itemValue="GMT+0100"
                                                      itemLabel="(GMT+0100) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"/>

                                        <f:selectItem itemValue="GMT+0100"
                                                      itemLabel="(GMT+0100) Brussels, Copenhagen, Madrid, Paris"/>

                                        <f:selectItem itemValue="GMT+0100"
                                                      itemLabel="(GMT+0100) Sarajevo, Skopje, Warsaw, Zagreb"/>

                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Cairo"/>
                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Harare, Pretoria"/>

                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Jerusalem"/>

                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Athens, Istanbul, Minsk"/>
                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Bucharest"/>

                                        <f:selectItem itemValue="GMT+0200"
                                                      itemLabel="(GMT+0200) Helsinki, Riga, Sofia, Tallinn, Vilnius"/>
                                        <f:selectItem itemValue="GMT+0300"
                                                      itemLabel="(GMT+0300) Nairobi"/>
                                        <f:selectItem itemValue="GMT+0300"
                                                      itemLabel="(GMT+0300) Baghdad"/>
                                        <f:selectItem itemValue="GMT+0300"
                                                      itemLabel="(GMT+0300) Kuwait, Riyadh"/>
                                        <f:selectItem itemValue="GMT+0300"
                                                      itemLabel="(GMT+0300) Moscow, St Petersburg, Volgograd"/>

                                        <f:selectItem itemValue="GMT+0330"
                                                      itemLabel="(GMT+0330) Tehran"/>
                                        <f:selectItem itemValue="GMT+0400"
                                                      itemLabel="(GMT+0400) Baku, Tbilisi, Muscat"/>
                                        <f:selectItem itemValue="GMT+0400"
                                                      itemLabel="(GMT+0400) Abu Dhabi, Muscat"/>
                                        <f:selectItem itemValue="GMT+0430"
                                                      itemLabel="(GMT+0430) Kabul"/>
                                        <f:selectItem itemValue="GMT+0500"
                                                      itemLabel="(GMT+0500) Islamabad, Karachi, Tashkent"/>
                                        <f:selectItem itemValue="GMT+0500"
                                                      itemLabel="(GMT+0500) Ekaterinburg"/>
                                        <f:selectItem itemValue="GMT+0530"
                                                      itemLabel="(GMT+0530) Chennai, Kolkata, Mumbai, New Delhi"/>
                                        <f:selectItem itemValue="GMT+0530"
                                                      itemLabel="(GMT+0530) Sri Jayawardenepura"/>
                                        <f:selectItem itemValue="GMT+0545"
                                                      itemLabel="(GMT+0545) Kathmandu"/>
                                        <f:selectItem itemValue="GMT+0600"
                                                      itemLabel="(GMT+0600) Almaty, Novosibirsk"/>
                                        <f:selectItem itemValue="GMT+0600"
                                                      itemLabel="(GMT+0600) Astana, Dhaka"/>
                                        <f:selectItem itemValue="GMT+0630"
                                                      itemLabel="(GMT+0630) Rangoon"/>
                                        <f:selectItem itemValue="GMT+0700"
                                                      itemLabel="(GMT+0700) Bangkok, Hanoi, Jakarta"/>
                                        <f:selectItem itemValue="GMT+0700"
                                                      itemLabel="(GMT+0700) Krasnoyarsk"/>
                                        <f:selectItem itemValue="GMT+0800"
                                                      itemLabel="(GMT+0800) Beijing, Chongqing, Hong Kong, Urumqi"/>

                                        <f:selectItem itemValue="GMT+0800"
                                                      itemLabel="(GMT+0800) Irkutsk, Ulaan Bataar"/>
                                        <f:selectItem itemValue="GMT+0800"
                                                      itemLabel="(GMT+0800) Kuala Lumpur, Singapore"/>
                                        <f:selectItem itemValue="GMT+0800"
                                                      itemLabel="(GMT+0800) Taipei"/>
                                        <f:selectItem itemValue="GMT+0800"
                                                      itemLabel="(GMT+0800) Perth"/>
                                        <f:selectItem itemValue="GMT+0900"
                                                      itemLabel="(GMT+0900) Seoul"/>
                                        <f:selectItem itemValue="GMT+0900"
                                                      itemLabel="(GMT+0900) Osaka, Sapporo, Tokyo"/>
                                        <f:selectItem itemValue="GMT+0900"
                                                      itemLabel="(GMT+0900) Yakutsk"/>
                                        <f:selectItem itemValue="GMT+0930"
                                                      itemLabel="(GMT+0930) Adelaide"/>
                                        <f:selectItem itemValue="GMT+0930"
                                                      itemLabel="(GMT+0930) Darwin"/>
                                        <f:selectItem itemValue="GMT+1000"
                                                      itemLabel="(GMT+1000) Vladivostok"/>
                                        <f:selectItem itemValue="GMT+1000"
                                                      itemLabel="(GMT+1000) Brisbane"/>
                                        <f:selectItem itemValue="GMT+1000"
                                                      itemLabel="(GMT+1000) Hobart"/>
                                        <f:selectItem itemValue="GMT+1000"
                                                      itemLabel="(GMT+1000) Sydney, Canberra, Melbourne"/>
                                        <f:selectItem itemValue="GMT+1000"
                                                      itemLabel="(GMT+1000) Guam, Port Moresby"/>
                                        <f:selectItem itemValue="GMT+1100"
                                                      itemLabel="(GMT+1100) Magadan, Solomon Islands, New Caledonia"/>
                                        <f:selectItem itemValue="GMT+1200"
                                                      itemLabel="(GMT+1200) Auckland, Wellington"/>
                                        <f:selectItem itemValue="GMT+1200"
                                                      itemLabel="(GMT+1200) Fiji, Kamchatka, Marshall Islands"/>
                                        <f:selectItem itemValue="GMT+1300"
                                                      itemLabel="(GMT+1300) Nukúalofa"/>

                                    </h:selectOneMenu> 
                                </div>
                                <div class="fields_input">
                                    <label>Ngôn ngữ:</label>
                                    <h:selectOneMenu value="#{Q100Bean.language}" style="width:165px;">
                                        <f:selectItem itemLabel="English" itemValue="English" />
                                        <f:selectItem itemLabel="Deutsch" itemValue="Deutsch" />
                                        <f:selectItem itemLabel="Việt Nam" itemValue="Việt Nam" />

                                    </h:selectOneMenu> 
                                </div>

                            </div>
                            <div class="alert">

                            </div>
                        </div>

                    </div>
                    <div class="popup-footer">
                        <div class="buttonsave" style="margin-right: 49px;" onclick="jQuery.fancybox.close() "  ><span><h:outputText value="#{locale.close}"/></span></div>
                        <h:commandButton  action="#{Q100Bean.updateQ100ByID}" value="Lưu" styleClass="buttonsave">
                            <f:param value="#{Q100Bean.pn100}" name="pn100i"/>
                        </h:commandButton>
                        <h:inputHidden value="#{Q100Bean.pn100}" id="fn100AA"/>                      
                    </div>
                </div>
            </a4j:form>
        </f:view>
    </body>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>